package com.catering.service;

import com.catering.domain.Table;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TableService {
    //添加
    int insertSelective(Table table);
    //修改

    int updateByPrimaryKeySelective(Table table);
    //多表查询

    List<Table> selectAll();
    //按id查询

    Table selectByPrimaryKey(Long id);
    //按id删除
    int deleteByPrimaryKey(Long id);

    List<Table> selLike(String location);
    PageInfo<Table> selTablePage(int pageNum, int pageSize);


    int updateStausIdToOneById(Long id);
    int updateStausIdToTwoById(Long id);
    int updateStausIdToThreeById(Long id);

}
